{% if is_paginated %}
    <div class="pagination">
        <span class="step-links">
        
    
    {% if show_first %}
    <a href="{{request_path}}page=1" title="first page"> &lt;&lt; {#&#171;#} </a>
    {% endif %}
    
    {% if has_previous %}
    <a href="{{request_path}}page={{previous}}" title="previous page"> &lt; </a>
    {% endif %}
    
    
    {% for pn in page_numbers %}
      {% ifequal pn page %}
      <span id="current-paginator-page">{{ pn }}</span>
      {% else %}
        <a href="{{request_path}}page={{ pn }}" title="page {{pn}}">{{ pn }}</a>
    {% endifequal %}
    {% endfor %}
    
    {% if has_next %}
    <a href="{{request_path}}page={{next}}" title="next page"> &gt; </a>
    {% endif %}

    
    {% if show_last %}
    <a href="{{request_path}}page={{pages}}" title="last page"> &gt;&gt; {#&#187;#} </a>
    {% endif %} 
 
      </span>
    </div>
{% endif %}